<!DOCTYPE html>
{% load static %}
{% get_static_prefix as URL_image %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎访问国资国企一体化平台</title>
    <script crossorigin="anonymous"
            integrity="sha512-WNLxfP/8cVYL9sj8Jnp6et0BkubLP31jhTG9vhL/F5uEZmg5wEzKoXp1kJslzPQWwPT1eyMiSxlKCgzHLOTOTQ=="
            src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>

    <style>
        body {
            margin: 0
        }

        .box > img {
            width: 100%;
            height: 100%;

        }
    </style>
</head>
<body>

{% static 'images/shou_ye.jpg' as shouye %}
<div class="box">

    <img src="{{ shouye }}" alt="点击进入" href="{% url 'index' %}">


</div>
<script>
    $(function () {
        $('.box > img').on('click', tiao_zhuan)
    });

    function tiao_zhuan() {
        console.log('click');
        $.ajax({
            type: 'GET',
            url: '{% url "index" %}',
            async:false,

            success(){
                window.location.href = '{% url "index" %}';
            }


        });
    }
</script>

</body>
</html>